package com.lizb.scservicedemo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping(value = "/info/{testParam}")
    public String info(@PathVariable("testParam") String testParam) {
        return "hello I am is service-demo2 " + testParam; //测试代码直接返回一个字符串，不再调用service层等等。
    }
}
